package com.foreknow.dao;

import com.foreknow.bean.Guestbook;

import java.sql.SQLException;
import java.util.List;

public interface GuestbookDao {
    /**
     * 添加留言
     * @param guestbook
     * @return
     * @throws SQLException
     */
    public boolean add(Guestbook guestbook) throws SQLException;

    /**
     * 查询所有留言信息
     * @return
     */
    public List<Object> getAll();

}
